using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Hal
{
    public class Device
    {
        DriveInfo info = null;
        string udi;
        string type;

        public string Type
        {
            get { return type; }
            set { type = value; }
        }
        public string Udi
        {
            get { return udi; }
            set { udi = value; }
        }
        public ulong Capacity
        {
            get { return (ulong)info.TotalSize; }
        }
        public ulong FreeSpace
        {
            get { return (ulong)info.AvailableFreeSpace; }
        }
        public Device(string Udi)
        {
            this.udi = Udi;
            info = new DriveInfo(udi);
            
        }
        public string Name
        {
            get { return info.VolumeLabel; }
        }
        public Device()
        {

        }
    }
}
